<?php

namespace app\common\resourceHandle;

use think\Model;

class GoodsResource extends ResourceHandle
{

    /**
     * @param Model $model
     * @return array
     * @throws \think\Exception
     */
    public function handle(Model $model): array
    {
        return $model->toArray();
    }
}